package com.deyuanyun.pic.pipe.domain.exceldomain;

import java.util.Date;

import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.GatherNoRang;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

public class PipeLineCentreImportDemo {

	private String code;
	
	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
	private String pipeLineId;
	
	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
	private String pipeSegmentId;
	
	@DataValidate(notNull = true,lengthLimit="32",lengthLimitMessage="长度不能大于32",myFunction=GatherNoRang.class,myFunctionMessage="采集点编号格式不对")
	private String gatherNo;
	
	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于32")
	private String gatherCustomNo;
	
	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于32")
	private String coordinateType;
	
    @DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",numberRangMessage="x坐标范围只能是-180至180")
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",numberRangMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-99999,99999}",numberRangMessage="z坐标范围只能是0至999999米")
    private String z;
	
	@DataValidate(type=Number.class)
	private String depth;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String recorder;
	
	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
	private String recordtime;
	
	@DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
	private String createRemark;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPipeLineId() {
		return pipeLineId;
	}

	public void setPipeLineId(String pipeLineId) {
		this.pipeLineId = pipeLineId;
	}

	public String getPipeSegmentId() {
		return pipeSegmentId;
	}

	public void setPipeSegmentId(String pipeSegmentId) {
		this.pipeSegmentId = pipeSegmentId;
	}

	public String getGatherNo() {
		return gatherNo;
	}

	public void setGatherNo(String gatherNo) {
		this.gatherNo = gatherNo;
	}

	public String getGatherCustomNo() {
		return gatherCustomNo;
	}

	public void setGatherCustomNo(String gatherCustomNo) {
		this.gatherCustomNo = gatherCustomNo;
	}

	public String getCoordinateType() {
		return coordinateType;
	}

	public void setCoordinateType(String coordinateType) {
		this.coordinateType = coordinateType;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getZ() {
		return z;
	}

	public void setZ(String z) {
		this.z = z;
	}

	public String getDepth() {
		return depth;
	}

	public void setDepth(String depth) {
		this.depth = depth;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getRecordtime() {
		return recordtime;
	}

	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}

	public String getCreateRemark() {
		return createRemark;
	}

	public void setCreateRemark(String createRemark) {
		this.createRemark = createRemark;
	}
	
	
}
